<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        async function demo() {
            console.log('aaaaaaaaaaaaa');
            await 111;
            throw new Error('出现错误了!')
            console.log('bbbbbbb');
            return 7777;
        }
        demo()
        .then(res => console.log('00000000', res))
        .catch(err => console.log('fail', err))
    </script>
</body>
</html>